Page({
  data:{
    items1: [
      {
        'type': 'primary',
        'title': '查看进度',
        'url': '/pages/msubmit/msubmit'
      }
    ]
  },
  backHome:function(){
    wx.switchTab({
      url: '/pages/mains/mains',
    })
  },
  onLoad: function (options){
    var that = this;
    if (options.msgInfo){
      let showType = JSON.parse(options.msgInfo);
      var index = parseInt(showType)
      console.log('显示类型' + showType)
      if (index == 1) {
        that.setData({
          items1: []
        })
      }
    }
    
    
  }
});